package com.wsc.juc_001.c_003;

public class Synchronized_03 {
    public int count = 10;

   public synchronized void m (){//等同于在方法的代码执行前要Synchronized（this）
       count--;
       System.out.println(Thread.currentThread().getName()+"count = "+count);
   }
}
